Optimal. Leaf size=61 \[ -\frac {128 \cos ^9(a+b x)}{9 b}+\frac {384 \cos ^{11}(a+b x)}{11 b}-\frac {384 \cos ^{13}(a+b x)}{13 b}+\frac {128 \cos ^{15}(a+b x)}{15 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4372, 2645,
276} \begin {gather*} \frac {128 \cos ^{15}(a+b x)}{15 b}-\frac {384 \cos ^{13}(a+b x)}{13 b}+\frac {384 \cos ^{11}(a+b x)}{11 b}-\frac {128 \cos ^9(a+b x)}{9 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2645
Rule 4372
Rubi steps
\begin {align*} \int \cos (a+b x) \sin ^7(2 a+2 b x) \, dx &=128 \int \cos ^8(a+b x) \sin ^7(a+b x) \, dx\\ &=-\frac {128 \text {Subst}\left (\int x^8 \left (1-x^2\right )^3 \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {128 \text {Subst}\left (\int \left (x^8-3 x^{10}+3 x^{12}-x^{14}\right ) \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {128 \cos ^9(a+b x)}{9 b}+\frac {384 \cos ^{11}(a+b x)}{11 b}-\frac {384 \cos ^{13}(a+b x)}{13 b}+\frac {128 \cos ^{15}(a+b x)}{15 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.49, size = 47, normalized size = 0.77 \begin {gather*} \frac {4 \cos ^9(a+b x) (-8330+10755 \cos (2 (a+b x))-3366 \cos (4 (a+b x))+429 \cos (6 (a+b x)))}{6435 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(110\) vs.
\(2(53)=106\).
time = 0.22, size = 111, normalized size = 1.82
method | result | size |
default | \(-\frac {35 \cos \left (x b +a \right )}{128 b}-\frac {35 \cos \left (3 x b +3 a \right )}{384 b}+\frac {21 \cos \left (5 x b +5 a \right )}{640 b}+\frac {3 \cos \left (7 x b +7 a \right )}{128 b}-\frac {7 \cos \left (9 x b +9 a \right )}{1152 b}-\frac {7 \cos \left (11 x b +11 a \right )}{1408 b}+\frac {\cos \left (13 x b +13 a \right )}{1664 b}+\frac {\cos \left (15 x b +15 a \right )}{1920 b}\) | \(111\) |
risch | \(-\frac {35 \cos \left (x b +a \right )}{128 b}-\frac {35 \cos \left (3 x b +3 a \right )}{384 b}+\frac {21 \cos \left (5 x b +5 a \right )}{640 b}+\frac {3 \cos \left (7 x b +7 a \right )}{128 b}-\frac {7 \cos \left (9 x b +9 a \right )}{1152 b}-\frac {7 \cos \left (11 x b +11 a \right )}{1408 b}+\frac {\cos \left (13 x b +13 a \right )}{1664 b}+\frac {\cos \left (15 x b +15 a \right )}{1920 b}\) | \(111\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 91, normalized size = 1.49 \begin {gather*} \frac {429 \, \cos \left (15 \, b x + 15 \, a\right ) + 495 \, \cos \left (13 \, b x + 13 \, a\right ) - 4095 \, \cos \left (11 \, b x + 11 \, a\right ) - 5005 \, \cos \left (9 \, b x + 9 \, a\right ) + 19305 \, \cos \left (7 \, b x + 7 \, a\right ) + 27027 \, \cos \left (5 \, b x + 5 \, a\right ) - 75075 \, \cos \left (3 \, b x + 3 \, a\right ) - 225225 \, \cos \left (b x + a\right )}{823680 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.85, size = 46, normalized size = 0.75 \begin {gather*} \frac {128 \, {\left (429 \, \cos \left (b x + a\right )^{15} - 1485 \, \cos \left (b x + a\right )^{13} + 1755 \, \cos \left (b x + a\right )^{11} - 715 \, \cos \left (b x + a\right )^{9}\right )}}{6435 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 270 vs.
\(2 (53) = 106\).
time = 33.36, size = 270, normalized size = 4.43 \begin {gather*} \begin {cases} - \frac {1241 \sin {\left (a + b x \right )} \sin ^{7}{\left (2 a + 2 b x \right )}}{6435 b} - \frac {376 \sin {\left (a + b x \right )} \sin ^{5}{\left (2 a + 2 b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{715 b} - \frac {640 \sin {\left (a + b x \right )} \sin ^{3}{\left (2 a + 2 b x \right )} \cos ^{4}{\left (2 a + 2 b x \right )}}{1287 b} - \frac {1024 \sin {\left (a + b x \right )} \sin {\left (2 a + 2 b x \right )} \cos ^{6}{\left (2 a + 2 b x \right )}}{6435 b} - \frac {3838 \sin ^{6}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos {\left (2 a + 2 b x \right )}}{6435 b} - \frac {1648 \sin ^{4}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{1287 b} - \frac {768 \sin ^{2}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{5}{\left (2 a + 2 b x \right )}}{715 b} - \frac {2048 \cos {\left (a + b x \right )} \cos ^{7}{\left (2 a + 2 b x \right )}}{6435 b} & \text {for}\: b \neq 0 \\x \sin ^{7}{\left (2 a \right )} \cos {\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 46, normalized size = 0.75 \begin {gather*} \frac {128 \, {\left (429 \, \cos \left (b x + a\right )^{15} - 1485 \, \cos \left (b x + a\right )^{13} + 1755 \, \cos \left (b x + a\right )^{11} - 715 \, \cos \left (b x + a\right )^{9}\right )}}{6435 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 46, normalized size = 0.75 \begin {gather*} -\frac {-\frac {128\,{\cos \left (a+b\,x\right )}^{15}}{15}+\frac {384\,{\cos \left (a+b\,x\right )}^{13}}{13}-\frac {384\,{\cos \left (a+b\,x\right )}^{11}}{11}+\frac {128\,{\cos \left (a+b\,x\right )}^9}{9}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________